/**
 *  Copyright (c) 2011, IPC Studio, USTC, All rights reserved
 *  FileName: TestApp.h
 *  Author: chengximing1989@gmail.com
 *  DateCreated: 2011-8-8
 *  Brief: class TestApp definition, used to init the application and process what user want to do
 */

#ifndef TESTAPP_H_
#define TESTAPP_H_

#include "CmdParam.h"
#include "Lrc.h"

using namespace liblyrics;

class TestApp
{
public:
	TestApp(void);
	/*virtual */~TestApp(void);

	/** Init the application
		@remarks
			Parse the command parameters, new object of liblyrics
	*/
	bool AppInit(int argc, char** argv);

	/** Process what the user want to do
	*/
	void Process();
protected:
	CmdParam*    m_pcmdparam;
	CLyrics*     m_plyrics;

	void SaveOutputFile();
	void PrintAll();
	void PrintHelp();
	void PrintHeadInfo();
};

#endif